-- GENERATED SPELL FOR [Rotgill] --


function spell0_24546(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_24546', 648, 1)
end

function spell1_24546(pUnit, Event) --@Searing Wound,n/a--
pUnit:FullCastSpellOnTarget(49956,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24546', 8261, 1)
end

function Sorts_24546(pUnit, Event)
local choix_sorts_24546 = math.random(0, 1)
if choix_sorts_24546 == 0 then
pUnit:RegisterEvent('spell0_24546', 1, 1)
end
if choix_sorts_24546 == 1 then
pUnit:RegisterEvent('spell1_24546', 1, 1)
end
end

function mob24546_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24546', math.random(1500, 3000), 1)
end

function mob24546_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24546_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24546_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24546, 1, 'mob24546_Action')
RegisterUnitEvent(24546, 2, 'mob24546_Leave')
RegisterUnitEvent(24546, 3, 'mob24546_Kill')
RegisterUnitEvent(24546, 4, 'mob24546_Die')
